from modelscope.hub.snapshot_download import snapshot_download


try:
    # 下载模型
    model_dir = snapshot_download(
        'stepfun-ai/GOT-OCR2_0',
        cache_dir=r'C:\Users\86078\Desktop\my_tmp\GOT_weights'
    )
    print(f"模型下载成功，保存路径: {model_dir}")
except Exception as e:
    print(f"下载模型时出错: {e}")